<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <table width="50%">
        <thead>
            <tr>
                <td>id</td>
                <td>name</td>
                <td>remark</td>
                <td>createdTime</td>
<!--                <td colspan="2">operation</td>-->
            </tr>
        </thead>
        <tbody id="tbody">
            <tr>
                <td colspan="4">loding.........</td>
            </tr>
        </tbody>
    </table>
</body>
<script src="js/axios.min.js"></script>
<script type="text/javascript">
    window.onload = function (){
        let url = "/goods/doFindGoods";
        axios.get(url).then(function (result){
           console.log(result.data);
           doHandleQueryResponseResult(result.data);
        });
    }
    function doHandleQueryResponseResult(date){
        let tBody=document.querySelector("tbody");
        tBody.innerHTML="";
        date.forEach(function (item){
            let tr=document.createElement("tr");//Node
            let td=document.createElement("td");
            td.innerText=item.id;
            tr.appendChild(td);

            td=document.createElement("td");
            td.innerText=item.name;
            tr.appendChild(td);

            td=document.createElement("td");
            td.innerText=item.remark;
            tr.appendChild(td);


            td=document.createElement("td");
            td.innerText=item.createdTime;
            tr.appendChild(td);

            document.getElementById("tbody").appendChild(tr);
            }
        );
    }
</script>
</html>